<!-- src/views/NotFound.vue -->
<template>
  <div class="not-found-container">
    <el-empty description="页面未找到">
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </el-empty>
  </div>
</template>

<script>
import { useRouter } from 'vue-router';

export default {
  name: 'NotFound',
  setup() {
    const router = useRouter();

    const goHome = () => {
      router.push('/dashboard');
    };

    return {
      goHome,
    };
  },
};
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
</style>
